package org.example.cloudalibaba.myhandler;

import cn.hutool.core.util.IdUtil;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.example.springcloud.common.Result;

public class CustomFallbackHandler {
    // 资源有的参数，兜底方法也必须有(本方法只适用于处理无参请求)
    public static Result<String> defaultFallback() {
        return Result.success("请求降级了, uuid = {}", IdUtil.fastSimpleUUID());
    }


}
